import request from '@/utils/request'

// 进行用户名和密码验证
export const checkLogin = (loginForm) => {
  return request.post('/admin/employee/login', loginForm)
}

// 进行用户名和密码验证
export const editpassword = (username, oldpassword, newpassword) => {
  return request.put('/admin/employee/update/password', {
    username: username,
    oldPassword: oldpassword,
    newPassword: newpassword
  }
  )
}
